<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>所有用户</title>
    <link rel="stylesheet" href="../css/layui.css">
</head>
<body>
    <h1 th:text="|你好,管理员:${session.currentUser.username}|" align="center" style="border: #0C0C0C;margin-top:50px ;"></h1><br>

    <table class="layui-table">
        <colgroup>
            <col width="150">
            <col width="200">
            <col>
        </colgroup>
        <thead>
        <tr>
            <th>序号</th>
            <th>ID</th>
            <th>用户名</th>
            <th>密码</th>
            <th>权限</th>
            <th>操作</th>
        </tr>
        </thead>
        <tbody>
        <tr th:each="user,status:${userList}">
            <td th:text="${status.count}"></td>
            <td th:text="${user.id}"></td>
            <td th:text="${user.username}"></td>
            <td th:text="${user.password}"></td>
            <td th:text="${user.power}"></td><br>
            <td><a th:href="|@{/update/}${user.id}"|>修改</a></td>
        </tr>
        </tbody>
    </table>
</body>
</html>